<style type="text/css">
	.title1{
		font-size:18pt;font-family:华文隶书,黑体,宋体,华文琥珀,隶书;color:#0E2D5F;
	}
.title2{
		font-size:11pt;font-family:楷体,黑体,宋体,华文琥珀,隶书;color:#0E2D5F;font-weight: bold;
	}
.title3{
		font-size:10pt;font-family:宋体;color:#0E2D5F;font-weight: bold;
	}
</style>
<div data-options="region:'north',title:'',split:true" class="north_title">

	<table style="width:100%;cellspacing:0px;cellpadding:0px;border:'0px';align:'center'">
		<tbody>
			<tr height="50">
				<td width="150" align="center">
					<img src="__PUBLIC__/images/logo.png" height="50px" alt="logo" />
				</td>
				<td valign="middle" align="center">
					<div>
					<span class="title1">
						{$Think.config.ENTERPRISE}
					</span>
					<span class="title2">
						{$Think.config.SYSNAME}&nbsp;{$Think.config.VERSION}
					</span>
					<span class="title3">
						<br/>『 {$Think.config.APP_URL} 』
					</span>
</div>
				</td>
				<td width="210" valign="top" align="center">
					<table style="width:100%;cellspacing:0px;cellpadding:0px;border:'0px';align:'center'">
						<tbody>

							<!--通过session进行判断-->
							<if condition="!empty($_SESSION[C('USER_AUTH_KEY')])">
								<tr>
									<td style="color:#0E2D5F">
										<a href="#"  class="easyui-linkbutton"  data-options="iconCls:'icon-standard-user',plain:true">{$_SESSION['zname']}:{$_SESSION[ 'uname']}</a>
										<a href="#"  class="easyui-linkbutton"  data-options="iconCls:'icon-standard-server-database',plain:true">IP:{$_SERVER[ "REMOTE_ADDR"]}</a>
										

									</td>
								</tr>
								<tr>
									<td>
									<!-- 	<a style="color:#0E2D5F" href='#' onclick='changePW_show()'>【 修改密码 】</a> -->
										<!-- <a style="color:#0E2D5F" href='#' onclick='loginout_show()'>【 退出系统 】</a> -->
										<a href="#"  class="easyui-linkbutton" onclick='changePW_show()' data-options="iconCls:'icon-standard-lock-edit',plain:true">修改密码</a>
										<a href="#"  class="easyui-linkbutton" onclick='loginout_show()' data-options="iconCls:'icon-standard-door-out',plain:true">退出系统</a>
									</td>
								</tr>
								<else/>
								<tr>
									<td>
										<a class='easyui-linkbutton' plain='true' iconCls='icon-standard-house-go' href='#' onclick='login_show()'><font style="color:#0E2D5F">登录系统</font></a>


									</td>
								</tr>
								<tr>

									<td>
										<a class='easyui-linkbutton' plain='true' iconCls='icon-standard-user-add' href='#' onclick='regedit_show()'><font style="color:#0E2D5F">注册账户</font></a>

									</td>

								</tr>

							</if>
						</tbody>
					</table>
				</td>
			</tr>
		</tbody>
	</table>

</div>
<script type="text/javascript">
	function loginout_show(){    
	$('#loginout').window('open');  // open a window   
}
//退出登录实现
function loginout(){
	$('#loginoutForm').form('submit',{
			url:'__APP__/Admin/Login/logout',
			success:function(data){
					$('#loginout').dialog('close');
				$.messager.alert('已经退出', data, 'info');
				window.location.reload();
  				
			
			}
		});
	}
//修改密码
function changePW_show(){    
	$('#changePW').window('open');  // open a window   
}
	//更改密码
function changePW(){

	$('#changePWForm').form('submit',{
			
			url:'__APP__/Admin/Login/logout',
			success:function(data){
				
				//$.messager.alert('已经退出', data, 'info');
				window.location.href = "index.php";
			
			}
		});
	}
//
function login_show(){    
	$('#login').window('open');  // open a window   
}
function login(){
$('#loginForm').form('submit',{
		url:'__APP__/Admin/Login/checkLogin',
		success:function(data){
		
			
			$.messager.alert('登录', data, 'info');
			$('#login').dialog('close');
			
			//window.location.href = "index.php";
		  //(window).unbind("beforeunload");
		  window.location.reload(); 
		
		}
	});
	
	}
function regedit_show(){    

	$('#regedit').window('open');  // open a window   
}
</script>
